package typeTest;

import java.util.ArrayList;
import java.util.List;

import com.bookShop.dao.BigTypeDao;
import com.bookShop.dao.MemberDao;
import com.bookShop.dao.impl.BigTypeDaoImpl;
import com.bookShop.dao.impl.MemberDaoImpl;
import com.bookShop.entity.BigType;
import com.bookShop.entity.Member;

public class Btest {
	public static void main(String[] args) {
		
		BigTypeDao btd = new BigTypeDaoImpl();
//		List<BigType> l = new ArrayList<BigType>();
		BigType bigType = new BigType();
//		bigType.setName("22");
//		bigType.setId(4);
//		System.out.println(btd.update(bigType));
//		System.out.println(btd.delete(4));
//		System.out.println(btd.insert(bigType));
//		l = btd.selectAll();
//		for(int i=0;i<l.size();i++){
//			System.out.println(l.get(i).getName());
//		}
		bigType= btd.selectById(1);
		System.out.println(bigType.getName());
		
//		MemberDao mbd = new MemberDaoImpl();
//		Member member = new Member() ;
//		member.setName("1111fdfasd");
//		member.setPassword("wewq");
//		member.setEmail("11");
//		member.setId(1);
//		System.out.println(mbd.update(member));
//		
	}
	
}
